package com.mm.dss.demo;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;


import com.mm.dss.demo.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class YjxxinfoActivity extends BaseActivity {
    TextView txt_yj;//预警
    TextView txt_title;
    RelativeLayout layout_back;
    TextView time;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_yjxxinfo);
          initview();

    }

    private void initview() {
        txt_title= (TextView) findViewById(R.id.txt_title);
        txt_yj= (TextView) findViewById(R.id.txt_yj);
        layout_back= (RelativeLayout) findViewById(R.id.layout_back);
        time= (TextView) findViewById(R.id.time);
        txt_title.setText(getIntent().getStringExtra("title"));
        layout_back.setVisibility(View.VISIBLE);
        txt_yj.setText(getIntent().getStringExtra("txt"));
        time.setText(getIntent().getStringExtra("time"));
    }

    public void onclick(View view){
        switch (view.getId())
        {

            case R.id.layout_back:
                finish();
                break;
        }
    }
}
